using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DTO;
using BUSLayer;

namespace QuanLyThuVien
{
    public partial class frmThemtacgia : Form
    {
        public frmThemtacgia()
        {
            InitializeComponent();
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void btnThem_Click(object sender, EventArgs e)
        {
            TacGiaDto tacgia = new TacGiaDto();

            tacgia.TENTACGIA = txtTenTacGia.Text;
            TacGiaBus.Them(tacgia);

            txtMaTacGia.Text = tacgia.MATACGIA.ToString();
        }
    }
}